package com.zqweb.gulimall.product.feign;

import com.zqweb.common.to.BoundsTo;
import com.zqweb.common.to.SkuFullReductionTo;
import com.zqweb.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("guli-mall-coupon")
public interface CouponFeignService {
    @PostMapping("/coupon/spubounds/save")
    // 传送过去的是BoundsTo的json格式，接收时以SpuBoundsEntity类来接收封装
    R save(@RequestBody BoundsTo boundsTo);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveInfo(@RequestBody SkuFullReductionTo skuFullReductionTo);


}
